﻿using System;
using System.Linq;
using AutoR.Services;

namespace AutoR.Models
{
	// Token: 0x020001B6 RID: 438
	public class ShipInWar
	{
		// Token: 0x17000221 RID: 545
		// (get) Token: 0x060008DD RID: 2269 RVA: 0x0006A653 File Offset: 0x00068853
		// (set) Token: 0x060008DE RID: 2270 RVA: 0x0006A65B File Offset: 0x0006885B
		public int id { get; set; }

		// Token: 0x17000222 RID: 546
		// (get) Token: 0x060008DF RID: 2271 RVA: 0x0006A664 File Offset: 0x00068864
		// (set) Token: 0x060008E0 RID: 2272 RVA: 0x0006A66C File Offset: 0x0006886C
		public int level { get; set; }

		// Token: 0x17000223 RID: 547
		// (get) Token: 0x060008E1 RID: 2273 RVA: 0x0006A675 File Offset: 0x00068875
		// (set) Token: 0x060008E2 RID: 2274 RVA: 0x0006A67D File Offset: 0x0006887D
		public int shipCid { get; set; }

		// Token: 0x17000224 RID: 548
		// (get) Token: 0x060008E3 RID: 2275 RVA: 0x0006A686 File Offset: 0x00068886
		// (set) Token: 0x060008E4 RID: 2276 RVA: 0x0006A68E File Offset: 0x0006888E
		public int indexInFleet { get; set; }

		// Token: 0x17000225 RID: 549
		// (get) Token: 0x060008E5 RID: 2277 RVA: 0x0006A697 File Offset: 0x00068897
		// (set) Token: 0x060008E6 RID: 2278 RVA: 0x0006A69F File Offset: 0x0006889F
		public string title { get; set; }

		// Token: 0x17000226 RID: 550
		// (get) Token: 0x060008E7 RID: 2279 RVA: 0x0006A6A8 File Offset: 0x000688A8
		// (set) Token: 0x060008E8 RID: 2280 RVA: 0x0006A6B0 File Offset: 0x000688B0
		public ShipType type { get; set; }

		// Token: 0x17000227 RID: 551
		// (get) Token: 0x060008E9 RID: 2281 RVA: 0x0006A6B9 File Offset: 0x000688B9
		// (set) Token: 0x060008EA RID: 2282 RVA: 0x0006A6C1 File Offset: 0x000688C1
		public int hp { get; set; }

		// Token: 0x17000228 RID: 552
		// (get) Token: 0x060008EB RID: 2283 RVA: 0x0006A6CA File Offset: 0x000688CA
		public UserShip UserShip
		{
			get
			{
				return Runtime.Game.UserShip.SingleOrDefault((UserShip i) => i.id == this.id);
			}
		}
	}
}
